package com.ias.amq.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.core.JmsMessagingTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class HelloAmqController {


    @Autowired
    private JmsMessagingTemplate innerActivemqTemplate;

    @RequestMapping("/testMultiAmq")
    public String testMultiAmq() {
        System.out.println("测试多个amq数据源");
        innerActivemqTemplate.convertAndSend("test-inner-MultiAmqQueue","测试1111");
        return "testMultiAmq";
    }
}
